package indigo.locale
{
	import flash.text.TextField;
	
	
	/**
	 * The <code>attachData</code> function is used as to bind <code>Data</code> to <code>TextFields</code>
	 * @param String that indicates the <code>Data</code> key
	 * @param TextField to which the <code>Data</code> will be binded
	 * @param Boolean that indicates the <code>Data</code> will be attached as HTML text
	 * @param Boolean that indicates that textStyles are copied from <code>Data</code>
	 * 
	 * @playerversion Flash 9
	 * @langversion ActionScript 3.0
	 */
	public function attachData( key:String, target:TextField, isHtmlText:Boolean = false, useTextFormat:Boolean = false ):Locale 
	{
		var myManager:Locale = Locale.getInstance( );
		myManager.attachData( key, target, isHtmlText, useTextFormat );
		
		return myManager; 		
	}
}
